🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / desktopApp / src / main / kotlin / org / meshtastic / desktop / stub / CompassStubs.kt
Displaying Raw • Download
desktopApp/src/main/kotlin/org/meshtastic/desktop/stub/CompassStubs.kt fix/qr-error-correction (7b45f84f) Text, 1.88 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.desktop.stub
Tff7b72import T7ee787kotlinx.coroutines.flow.Flow
Tff7b72import T7ee787kotlinx.coroutines.flow.flowOf
Tff7b72import T7ee787org.meshtastic.feature.node.compass.CompassHeadingProvider
Tff7b72import T7ee787org.meshtastic.feature.node.compass.HeadingState
Tff7b72import T7ee787org.meshtastic.feature.node.compass.MagneticFieldProvider
Tff7b72import T7ee787org.meshtastic.feature.node.compass.PhoneLocationProvider
Tff7b72import T7ee787org.meshtastic.feature.node.compass.PhoneLocationState
T8b949e/** No-op [CompassHeadingProvider] — desktop has no compass sensor. */
Tff7b72class T56d364NoopCompassHeadingProvider Tb4b4b4: Te6edf3CompassHeadingProvider Tb4b4b4{
Tff7b72override Tff7b72fun Td2a8ffheadingUpdatesTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3FlowTff7b72<Te6edf3HeadingStateTff7b72> Tff7b72= Te6edf3flowOfTb4b4b4(Te6edf3HeadingStateTb4b4b4(Te6edf3hasSensor Tff7b72= Tff7b72falseTb4b4b4)Tb4b4b4)
Tb4b4b4}
T8b949e/** No-op [PhoneLocationProvider] — desktop has no GPS provider. */
Tff7b72class T56d364NoopPhoneLocationProvider Tb4b4b4: Te6edf3PhoneLocationProvider Tb4b4b4{
Tff7b72override Tff7b72fun Td2a8fflocationUpdatesTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3FlowTff7b72<Te6edf3PhoneLocationStateTff7b72> Tff7b72=
Te6edf3flowOfTb4b4b4(Te6edf3PhoneLocationStateTb4b4b4(Te6edf3permissionGranted Tff7b72= Tff7b72falseTb4b4b4, Te6edf3providerEnabled Tff7b72= Tff7b72falseTb4b4b4)Tb4b4b4)
Tb4b4b4}
T8b949e/** No-op [MagneticFieldProvider] — always returns zero declination. */
Tff7b72class T56d364NoopMagneticFieldProvider Tb4b4b4: Te6edf3MagneticFieldProvider Tb4b4b4{
Tff7b72override Tff7b72fun Td2a8ffgetDeclinationTb4b4b4(Te6edf3latitudeTb4b4b4: Tffa657DoubleTb4b4b4, Te6edf3longitudeTb4b4b4: Tffa657DoubleTb4b4b4, Te6edf3altitudeTb4b4b4: Tffa657DoubleTb4b4b4, Te6edf3timeMillisTb4b4b4: Tffa657LongTb4b4b4)Tb4b4b4: Tffa657Float Tff7b72= T79c0ff0f
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.05s